import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import root from './modules/root'
import getters from './getters'
Vue.use(Vuex)


const store = new Vuex.Store({
  modules:{
    user:{
      namespaced: true,
      ...user,
    },
    root:{
      namespaced: true,
      ...root,
      
    }
  },
  getters
})

export default store
